package com.netease.spring.advice;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.netease.spring.exceptions.KwikEMartException;

public class Main {
	public static void main(String[] args) throws KwikEMartException {
		ApplicationContext context = new ClassPathXmlApplicationContext("kwikemart.xml");
		KwikEMart emart = (KwikEMart) context.getBean("kwikEMart");
		Customer customer = (Customer) context.getBean("customer");
		Squishee squishee = emart.buySquishee(customer);
		//emart.setMachine(true);
	}
}
